﻿using smp.ButterflyCakes.Models.ViewModels.Schedule;

namespace smp.ButterflyCakes.Models.InputModels.Schedule
{
    public class SelectMonthInput
    {
        public string Month { get; set; }
        public string Year { get; set; }
        public string Day { get; set; }
        
        public DateModel DateModel
        {
            get
            {
                if(string.IsNullOrEmpty(Day))
                    return new DateModel(Month + "-" + Year);
                return new DateModel(Day + "-" + Month + "-" + Year);
            }
        }
    }
}
